import {MarketDetailResponse, QueryMarketsResponse} from "../apis/MarketsApi";
import {ListDetailPageStackPaginationStore} from "./ListDetailPageStackStore";


const marketPageStackStore = new ListDetailPageStackPaginationStore<QueryMarketsResponse, MarketDetailResponse, number>(
    detail => ({
        id: detail.id,
        saleManager: detail.saleManager,
        excludeBrands: detail.excludeBrands,
        shoppingGuides: detail.shoppingGuides,
        name:detail.name,
        goodsAmount:detail.goodsAmount
    }),
    item => item.id,
    detail => detail.id
)

export default marketPageStackStore